import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
   {
    title: '姓名',
    align:"center",
    dataIndex: 'name'
   },
   {
    title: '学号',
    align:"center",
    dataIndex: 'studentId'
   },
   {
    title: '学年',
    align:"center",
    dataIndex: 'year'
   },
   {
    title: '学院',
    align:"center",
    dataIndex: 'academy'
   },
   {
    title: '专业',
    align:"center",
    dataIndex: 'major'
   },
   {
    title: '班级',
    align:"center",
    dataIndex: 'grade'
   },
   {
    title: '身份证号',
    align:"center",
    dataIndex: 'idcard'
   },
   {
    title: '证书编号',
    align:"center",
    dataIndex: 'certificateId'
   },
   {
    title: '证书名称',
    align:"center",
    dataIndex: 'certificateName'
   },
   {
    title: '颁发部门',
    align:"center",
    dataIndex: 'department'
   },
   {
    title: '证书下载',
    align:"center",
    dataIndex: 'upload'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '姓名',
    field: 'name',
    component: 'Input',
  },
  {
    label: '学号',
    field: 'studentId',
    component: 'Input',
  },
  {
    label: '学年',
    field: 'year',
    component: 'Input',
  },
  {
    label: '学院',
    field: 'academy',
    component: 'Input',
  },
  {
    label: '专业',
    field: 'major',
    component: 'Input',
  },
  {
    label: '班级',
    field: 'grade',
    component: 'Input',
  },
  {
    label: '身份证号',
    field: 'idcard',
    component: 'Input',
  },
  {
    label: '证书编号',
    field: 'certificateId',
    component: 'Input',
  },
  {
    label: '证书名称',
    field: 'certificateName',
    component: 'Input',
  },
  {
    label: '颁发部门',
    field: 'department',
    component: 'Input',
  },
  {
    label: '证书下载',
    field: 'upload',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];
